﻿using System;
using System.Collections.Generic;
using System.Text;
using Slf;

namespace EntLib_Logging
{
    class Program
    {
        static void Main(string[] args)
        {
          Console.ForegroundColor = ConsoleColor.Green;
          Console.Out.WriteLine("App.config was configured to write to the EventLog.");
          Console.Out.WriteLine("When running this sample, make sure you have the permission to write to the EvenLog, or it will be suppressed.\n\n");
          Console.ResetColor();

          //get the declared logger
          ILogger logger = LoggerService.GetLogger();
          logger.Info("Hello world! This sample was executed at '{0}'", DateTime.Now);

          Console.ReadLine();
        }
    }
}
